#define _CRT_SECURE_NO_WARNINGS 1
//
//#include <stdio.h>
//#include <stdlib.h>
//#define A 2
//#define B 3
//#define MAX_SIZE A+B
//struct _Record_Struct
//{
//	unsigned char Env_Alarm_ID : 4;
//	unsigned char Para1 : 2;
//	unsigned char state;
//	unsigned char avail : 1;
//}*Env_Alarm_Record;
//
//int main()
//{
//	struct _Record_Struct p = { 0 };
//	struct _Record_Struct* pointer = (struct _Record_Struct*)malloc(sizeof(struct _Record_Struct) * MAX_SIZE);
//	printf("%d\n", sizeof(struct _Record_Struct) * MAX_SIZE);
//
//	return 0;
//}

#include <stdio.h>
union un
{
	int i;
	char c[4];
};

int main()
{
	union un u = { 0 };
	u.c[3] = 0x44;
	u.c[2] = 0x33;
	u.c[1] = 0x22;
	u.c[0] = 0x11;
	printf("%x\n", u);
	return 0;
}